package com.agritech.strategy;

public class PathPlanner {
    private PathStrategy strategy;

    public PathPlanner(PathStrategy strategy) {
        this.strategy = strategy;
    }

    public void setStrategy(PathStrategy strategy) {
        this.strategy = strategy;
    }

    public void executePlanning(String environmentInfo) {
        System.out.println("路径规划器开始规划...");
        strategy.planPath(environmentInfo);
        System.out.println("路径规划器规划结束.");
    }
}